package com.xjy.system.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import javax.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 个人借款信息编辑对象 sys_loan
 *
 * @author xjy
 * @date 2022-02-10
 */
@Data
@ApiModel("个人借款信息编辑对象")
public class SysLoanEditBo {


	@ApiModelProperty("个人借款ID")
	private Long id;

	@ApiModelProperty("项目ID")
	@NotNull(message = "项目ID不能为空")
	private Long projId;

	@ApiModelProperty("项目名称")
	private String projName;

	@ApiModelProperty("合同名称")
	private String contractName;

	@ApiModelProperty("合同ID")
	private Long contractId;

	@ApiModelProperty("结算项目名称")
	private String resultContractName;

	@ApiModelProperty("结算项目ID")
	private Long resultContractId;

	@ApiModelProperty("预算科目ID")
	private Long budgetId;

	@ApiModelProperty("科目名称")
	private String budgetName;

	@ApiModelProperty("个人借款支付单据编号")
	@NotBlank(message = "个人借款支付单据编号不能为空")
	private String resultContractNo;

	@ApiModelProperty("个人借款归还单据编号")
	private String resultContractNoBack;

	@ApiModelProperty("个人借款冲销单据编号")
	private String resultContractNoCharge;


	@ApiModelProperty("个人借款类别：0：支付借款，1：归还借款")
	@NotNull(message = "个人借款类别：0：支付借款，1：归还借款不能为空")
	private Integer loanType;

	@ApiModelProperty("借款人:对内借款，借款人从内部人员中取")
	@NotBlank(message = "借款人:对内借款，借款人从内部人员中取不能为空")
	private String borrower;

	@ApiModelProperty("借款人id：关联个人ID支持费用报销的联查预付款~")
	@NotNull(message = "借款人id：关联个人ID支持费用报销的联查预付款~不能为空")
	private Long borrowerId;

	@ApiModelProperty("个人借款事由摘要")
	private String abstracted;

	@ApiModelProperty("个人借款发生金额")
	@NotNull(message = "个人借款发生金额不能为空")
	private BigDecimal amount;

	@ApiModelProperty("支付之后进行冲抵/归还操作，剩余的金额")
	private BigDecimal balance;

	@ApiModelProperty("冲销状态0：未冲销；1：已冲销")
	@NotNull(message = "冲销状态0：未冲销；1：已冲销不能为空")
	private Integer writeoffStatus;


	@ApiModelProperty("经办人")
	private String handler;

	@ApiModelProperty("经办人id")
	private Long handlerId;

	@ApiModelProperty("个人借款发生日期")
	@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
	private Date createTime;

	@ApiModelProperty("修改时间")
	private Date updateTime;

	@ApiModelProperty("支付方式0：现金，1：银行（默认：银行)")
	private Integer payType;

	@ApiModelProperty("支付账户账户ID")
	private Long payAccountId;

	@ApiModelProperty("支付账户名称")
	@NotBlank(message = "支付账户名称不能为空")
	private String payAccountName;

	@ApiModelProperty("支付账户开户行")
	private String payAccountBank;

	@ApiModelProperty("支付账户号码")
	private String payAccountNo;

	@ApiModelProperty("票据影像名称")
	private String imageName;

	@ApiModelProperty("票据影像：存文件路径")
	private String image;

	@ApiModelProperty("上传时间")
	private Date uploadTime;

	@ApiModelProperty("备注")
	private String remark;

	@ApiModelProperty("预留字段1")
	private String reserveOne;

	@ApiModelProperty("预留字段2")
	private String reserveTwo;

	@ApiModelProperty("预留字段3")
	private String reserveThree;
	@ApiModelProperty("对方银行账户名称")
	private String colBankName;


	@ApiModelProperty("对方银行账户开户行")
	private String colBank;

	@ApiModelProperty("对方银行账户号码")
	private String colBankNo;
	@ApiModelProperty("审核状态 0：未审核（默认）；1：审核")
	@NotNull(message = "审核状态 0：未审核（默认）；1：审核不能为空")
	private Boolean auditStatus;
}
